﻿je_treaty_of_london = {
	icon = "gfx/interface/icons/event_icons/event_scales.dds"

	complete = {
		year < 1839
		gdp > 7200000
		c:BEL ?= {
			c:GBR.relations:ROOT > relations_threshold:cordial
		}
		c:BEL ?= {
			c:FRA.relations:ROOT > relations_threshold:cordial
		}
	}
	fail = {
		year > 1839
	}
	on_complete = {
		add_modifier = {
			name = pax_belgica
		}
	}
	on_fail = {
		trigger_event = {
			id = low_countries_events.1
		}	
		custom_tooltip = {
			text = je_treaty_of_london_fail
		}
	}

	should_be_pinned_by_default = yes
}
je_treaty_of_london_1867 = {
	icon = "gfx/interface/icons/event_icons/event_scales.dds"

	complete = {
		year > 1867
		c:LUX ?= {
			is_subject_of = c:NET
		}
	}
	on_complete = {
		trigger_event = {
			id = low_countries_events.2
		}	
	}
	is_shown_when_inactive = {
		THIS = c:NET
		exists = c:LBG
	}
	possible = {
		c:LBG ?= {
			is_subject_of = c:NET
		}
	}
	should_be_pinned_by_default = yes
}
je_luxembourg_separation = {
	icon = "gfx/interface/icons/event_icons/event_scales.dds"

	#complete = {
	#	c:NET = {
	#		owns_entire_state_region = STATE_LUXEMBOURG
	#	}
	#}
	
	
	fail = {
		OR = {
			AND = {
				is_ai = yes
				year > 1890
			}
			ruler = {
				is_female = yes
			}
		}
	}
	on_fail = {
		c:LUX = {
			make_independent = yes
		}
	}
	is_shown_when_inactive = {
		THIS = c:NET
		exists = c:LUX
	}
	possible = {
		c:LUX ?= {
			is_subject_of = c:NET
		}
	}
}
je_expedition_into_celebes = {
	icon = "gfx/interface/icons/event_icons/event_scales.dds"

	
	complete = {
		year > 1836
	}
	on_complete = {
		custom_tooltip = {
			text = je_text_celebes_expedition
		}
		hidden_effect = {
			root = {
				create_diplomatic_play = {
					name = dutch_celebes_expedition
				
					target_state = s:STATE_CELEBES.region_state:BTN
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_celebes_expedition
				
					target_state = s:STATE_CELEBES.region_state:KNA
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_celebes_expedition
				
					target_state = s:STATE_CELEBES.region_state:LUW
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_celebes_expedition
				
					target_state = s:STATE_CELEBES.region_state:WAJ
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_celebes_expedition
				
					target_state = s:STATE_CELEBES.region_state:TOR
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_celebes_expedition
				
					target_state = s:STATE_CELEBES.region_state:MND
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_celebes_expedition
				
					target_state = s:STATE_CELEBES.region_state:SIG
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_celebes_expedition
				
					target_state = s:STATE_CELEBES.region_state:DGL
					
					war = yes
					
					type = dp_annex_war
				}
			}
		}
	}
	is_shown_when_inactive = {
		THIS = c:DEI
	}
	possible = {
		NOT = {
			owns_entire_state_region = s:STATE_CELEBES
		}
	}
}
je_expedition_into_sumatra = {
	icon = "gfx/interface/icons/event_icons/event_scales.dds"

	
	complete = {
		year > 1870
	}
	on_complete = {
		custom_tooltip = {
			text = je_text_sumatra_expedition
		}
		hidden_effect = {
			root = {
				create_diplomatic_play = {
					name = dutch_sumatra_expedition
				
					target_state = s:STATE_NORTH_SUMATRA.region_state:SAK
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_sumatra_expedition
				
					target_state = s:STATE_ACEH.region_state:SAK
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_sumatra_expedition
				
					target_state = s:STATE_ACEH.region_state:BAR
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_sumatra_expedition
				
					target_state = s:STATE_ACEH.region_state:BAK
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_sumatra_expedition
				
					target_state = s:STATE_ACEH.region_state:ACE
					
					war = yes
					
					type = dp_annex_war
				}
			}
		}
	}
	is_shown_when_inactive = {
		THIS = c:DEI
	}
	possible = {
		NOT = {
			owns_entire_state_region = s:STATE_NORTH_SUMATRA
			owns_entire_state_region = s:STATE_ACEH
		}
	}
}
je_expedition_into_borneo = {
	icon = "gfx/interface/icons/event_icons/event_scales.dds"

	
	complete = {
		year > 1880
	}
	on_complete = {
		custom_tooltip = {
			text = je_text_borneo_expedition
		}
		hidden_effect = {
			root = {
				create_diplomatic_play = {
					name = dutch_borneo_expedition
				
					target_state = s:STATE_EAST_BORNEO.region_state:PAS
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_borneo_expedition
				
					target_state = s:STATE_EAST_BORNEO.region_state:KTI
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_borneo_expedition
				
					target_state = s:STATE_WEST_BORNEO.region_state:STG
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_borneo_expedition
				
					target_state = s:STATE_WEST_BORNEO.region_state:SLI
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_borneo_expedition
				
					target_state = s:STATE_WEST_BORNEO.region_state:LAN
					
					war = yes
					
					type = dp_annex_war
				}
				create_diplomatic_play = {
					name = dutch_borneo_expedition
				
					target_state = s:STATE_WEST_BORNEO.region_state:SMB
					
					war = yes
					
					type = dp_annex_war
				}
			}
		}
	}
	is_shown_when_inactive = {
		THIS = c:DEI
	}
	possible = {
		NOT = {
			owns_entire_state_region = s:STATE_EAST_BORNEO
			owns_entire_state_region = s:STATE_WEST_BORNEO
		}
	}
}
